<center>
<?php
$userpassword="users/".$_COOKIE["username"]."/md5.password";
$abc=fopen($userpassword,"r");
$pd=fgets($abc);
fclose($abc);
if($pd==md5($_POST["ypd"])){
    if($_POST["xpd"]==$_POST["yzpd"]){
        echo"修改成功";
        $xg=fopen($userpassword,"w");
        fwrite($xg,md5($_POST["xpd"]));
        fclose($xg);
    }else{
        echo"两次密码不一致";
    }
}else{
    echo"原密码错误";
}
?>
<br><a href="desktop.php">首页</a>
<link rel="stylesheet" type="text/css" href="sys.css">
</center>